﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GNSWebSite.Managers;
using System.Globalization;

namespace GNSWebSite.Controls
{
    public partial class PlaceOnLiveMap : System.Web.UI.UserControl
    {
        public double Latitude
        {
            get
            {
                return Convert.ToDouble(hfLatitude.Value, CultureInfo.InvariantCulture);
            }
        }

        public double Longtitude
        {
            get
            {
                return Convert.ToDouble(hfLontitude.Value, CultureInfo.InvariantCulture);
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            string script = 
                string.Format("<script type='text/javascript' src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6'></script>");
            Page.ClientScript.RegisterStartupScript(typeof(UserControl), "somescript", script, false);
            //Page.ClientScript.RegisterStartupScript(typeof(UserControl), "script", "load();", true);
        }
    }
}